package org.ruoyi.common.dhuman.backup;

import java.io.File;

public class DocumentToVideoExample {
	public static void main(String[] args) {
		DocumentToVideoConverter converter = new DocumentToVideoConverter();

		try {
			// 转换PDF文件
			// File pdfFile = new File("E:\\Downloads\\延期向社会开放档案审批.pdf");
			// converter.convertDocumentToVideo(pdfFile, "output_from_pdf.mp4");

			// 转换PPT文件
			File pptFile = new File("C:\\Users\\Admin\\Videos\\暖城鄂尔多斯：自然与人文的艺术之旅.pptx");
			converter.convertDocumentToVideo(pptFile, "output_from_ppt.mp4");

			System.out.println("转换完成！");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
